package io.work1;

import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class test1 {
    public static void main(String[] args) throws Exception{
        FileInputStream fis=new FileInputStream("Student.obj");
        ObjectInputStream ois=new ObjectInputStream(fis);
        Object obj =ois.readObject();
        Student zs=(Student) obj;
        System.out.println(zs);
        ois.close();
    }
}
